package main

import (
	"github.com/gin-gonic/gin"
	"go-vue/admin/conf"
	"go-vue/admin/routers"
	"log"
)

func main() {

	gin.SetMode(gin.DebugMode)
	engine := gin.Default()
	engine.Use(routers.Cors())
	routers.Router(engine)

	err := engine.Run(":" + conf.Config.Port)
	if err != nil {
		log.Panicln(err)
	}
}
